/**
 *   类说明
 * 	@company         杭州黔灵科技有限公司  
 *   @creator             chenhe
 *   @create-time     2012-10-30   下午9:37:10   
 *   
 */
package com.zscg.sequence.ui;

import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageButton;
import android.widget.TextView;

import com.zscg.sequence.R;

public abstract class SequenceTitleActivity extends SequenceActivity {

	Button backButton;
	ImageButton settingButton;
	TextView titleTextView;

	/**
	 * 初始化title，在setcontentview之后调用
	 */
	protected void inintTitle() {
		backButton = (Button) findViewById(R.id.cancle);
		settingButton = (ImageButton) findViewById(R.id.setting);
		backButton.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				finish();
			}
		});

		settingButton.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				settingListener();

			}
		});
	}

	protected abstract void settingListener();

}
